import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import TypeNav from '@/components/TypeNav'
import Pagination from '@/components/Pagination'
import 'swiper/css/swiper.min.css'
import '@/plugins/elements'
import '@/plugins/lazyload'
import './mock/mockServer' // 引入进来之后开启服务器  相当于已经开启服务器了

import * as API from '@/api'

// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';



Vue.config.productionTip = false

Vue.component(TypeNav.name, TypeNav)
Vue.component(Pagination.name, Pagination)
new Vue({
  router,
  beforeCreate() {
    Vue.prototype.$bus = this
    Vue.prototype.$API = API
  },
  store,
  render: h => h(App),
}).$mount('#app')
